{include file="public/header" /}
<style type="text/css">
    .gray-bg{ background: #fff; }
    .red{color: #d43f3a}
</style>
<body class="gray-bg">
<div class="wrapper wrapper-content">
    <div class="wrapper wrapper-content">
        <div class="row">
            <form class="form-horizontal" method="post">
                <div class="col-sm-12">
                    <div class="col-sm-12" id="form">
                        <div class="form-group">
                            <label class="col-sm-2 control-label">类型：</label>
                            <div class="col-sm-9">
                                <select class="form-control" name="type">
                                    <option value="-1">请选择类型...</option>
                                    {foreach $type as $key => $vo}
                                    {if !in_array($key, $created_type)}
                                    <option value="{$key}">{$vo.name}</option>
                                    {/if}
                                    {if isset($data.type) and $data.type eq $key}
                                    <option value="{$key}" selected="selected">{$vo.name}</option>
                                    {/if}
                                    {/foreach}
                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label"></label>
                            <div class="col-sm-9">
                                根据短信后台模板填写即可，<span class="red">【变量】</span>可以写入固定值或使用 <span class="red">系统变量</span>
                                <br /><br />
                                <p><span class="red">[date]</span> 日期时间(2020-01-01 12:34:56) <span class="red">[time]</span> 时间(12:34:56) <span class="red">[captcha]</span> 验证码(123456) <span class="red">[nickname]</span> 昵称(犀利哥)</p>
                                <p><span class="red">[other_{i}]</span> {i}替换成1,2，……,n，例如：您的验证码是[other_1]，如非本人操作[other_2]，请勿理会。</p>

                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">模板内容：</label>
                            <div class="col-sm-9">
                                <input type="text" name="template_value" class="form-control" value="{$tempVal|default=""}" />
                            </div>
                        </div>
                    </div>
                </div>
                <input type="hidden" name="id" value="{$data.id|default="0"}" />
            </form>
        </div>
    </div>
</div>
{include file="public/footer" /}
<script type="text/javascript"></script>
{include file="public/bottom" /}
